<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	
	<style type="text/css">
		.picture{
			width:30px;
			height:30px;
			float:left;
		}
		.clear{
			clear:both;
		}
		.detail{
			float:left;
			width:120px;
			height:30px;
		}
		.time{
			float:right;
		}
	</style>
	
	<title>CRM-概览</title>
</head>
<body>
	<%@ include file="include/base.jsp" %>
	<%@ include file="include/base-top.jsp" %>
	
	<div class="container ">
		<div class="page-header">
			<h2>最新动态 <small>记录点点滴滴</small></h2>
		</div>
		
		<!-- 迭代机会 -->
		<c:forEach items="${chanceList }" var="cl">
			<div class="picture">
				<img src="image/jihui.png"></img>	
			</div>
			<div class="detail">
				<h3><a href="event.jspx?id=${cl.id }">${cl.chancename }</a></h3>
			</div><br/>
			<span>由${cl.employee.name }添加</span>
			<div class="time">
				<small>${cl.createtime }</small>
			</div>
			<div class="clear"></div>
			<hr/>
		</c:forEach>
		
		<!-- 迭代联系人 -->
		<c:forEach items="${contactList }" var="conl">
			<div class="picture">
				<img src="image/default-man.png"></img>	
			</div>
			<div class="detail">
				<h3><a href="company.jspx?id=${conl.id }">${conl.contactname }</a></h3>
			</div><br/>
			<span>由${conl.employee.name }添加</span>
			<div class="time">
				<small>${conl.createtime }</small>
			</div>
			<div class="clear"></div>
			<hr/>
		</c:forEach>
		
		<!-- 迭代公司 -->
		<c:forEach items="${companyList }" var="coml">
			<div class="picture">
				<img src="image/company.png"></img>	
			</div>
			<div class="detail">
				<h3><a href="company.jspx?id=${coml.id }">${coml.companyname }</a></h3>
			</div><br/>
			<span>由${coml.employee.name }添加</span>
			<div class="time">
				<small></small>
			</div>
			<div class="clear"></div>
			<hr/>
		</c:forEach>
		
		<%-- <!-- 迭代任务 -->
		<c:forEach items="${taskList }" var="tl">
			<div class="picture">
				<img src="image/renwu.png"></img>	
			</div>
			<div class="detail">
				<h3><a href="#">${tl.taskname }</a></h3>
			</div><br/>
			<span>由${tl.employee.name }添加</span>
			<div class="time">
				<small>${tl.createtime }</small>
			</div>
			<div class="clear"></div>
			<hr/>
		</c:forEach>
		
		<!-- 迭代事件 -->
		<c:forEach items="${eventList }" var="el">
			<div class="picture">
				<img src="image/shijian.png"></img>	
			</div>
			<div class="detail">
				<h3><a href="#">${el.des }</a></h3>
			</div><br/>
			<span>由${el.employee.name }添加</span>
			<div class="time">
				<small>${el.createtime }</small>
			</div>
			<div class="clear"></div>
			<hr/>
		</c:forEach> --%>
	</div>

</body>
</html>